﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HPIT.Shop.DTO
{
   public class LoginDTO
    {
        public int Id { get; set; }
        [Required(ErrorMessage = "请输入手机号")]
        public string MobileNumber{ get; set; }

        [Required(ErrorMessage = "请输入密码")]
        public string Password{ get; set; }

        [Required(ErrorMessage = "请输入验证码")]
        [StringLength(4, MinimumLength = 4, ErrorMessage = "验证码长度为4个字符")]
        public string VerCode { get; set; }
    }
}
